package com.carleasoft.mps.core.user;
/**
 * 公共属性类
 * @author: ztm
 */

public class Constants {

	/**
	 * 1-web，2-客户端，3-app
	 */
	public final static Integer WEB = 1;
	public final static Integer CLIENT = 2;
	public final static Integer APP = 3;

	/**
	 * 1-超级管理员专用菜单，2-业务功能菜单
	 */
	public final static Integer MENU_SUPPER = 1;
	public final static Integer MENU_ALL = 2;



	/**
	 * 全路径分隔符
	 */
	public final static String DELIMITER = "&";
	public final static String PARENT_CODE = "0";


	/**
	 * 1-正常，2-停用
	 */
	public final static Integer ENABLE = 1;
	public final static Integer DISABLE = 2;

	/**
	 * 部门类型 ：1-机构，2-部门
	 */
	public final static Integer AGENCY = 1;
	public final static Integer DEPARTMENT = 2;

	/**
	 * 全部数据权限，1-全部;2-指定组织分类;3-指定组织;4-所在组织;5-指定部门;6-所在部门;99999999-没有权限时返回，避免使用过程中控制指针
	 */
	public final static Integer DATA_ALL = 1;
	public final static Integer DATA_ORGANIZATION_TYPE = 2;
	public final static Integer DATA_SELECT_ORGANIZATION = 3;
	public final static Integer DATA_OWNER_ORGANIZATION = 4;
	public final static Integer DATA_SELECT_DEPT = 5;
	public final static Integer DATA_OWNER_DEPT = 6;
	public final static Integer DATA_NOT = 99999999;

	/**
	 * 用户类型，1-超级管理员，2-系统管理员，3-组织管理员，4-普通用户
	 */
	public final static Integer SUPER_ADMIN = 1;
	public final static Integer SYSTEM_ADMIN = 2;
	public final static Integer ORGANIZATION_SUPER_ADMIN = 3;
	public final static Integer ORGANIZATION_SYSTEM_ADMIN = 4;
	public final static Integer ORDINARY_USER = 5;

	/**
	 * 赋权对象类型，1-用户分类，2-系统管理员，3-组织分类，4-组织，5-部门，6-用户，7-职务，8-职务分组,9-部门分类
	 */
	public final static Integer TARGET_USER_TYPE = 1;
	public final static Integer TARGET_SYSTEM_ADMIN = 2;
	public final static Integer TARGET_ORGANIZATION_TYPE = 3;
	public final static Integer TARGET_ORGANIZATION = 4;
	public final static Integer TARGET_DEPT = 5;
	public final static Integer TARGET_USER = 6;
	public final static Integer TARGET_POS = 7;
	public final static Integer TARGET_POS_GROUP = 8;
	public final static Integer TARGET_DEPT_TYPE = 9;
	/**
	 *系统数据权限范围：DATA_SCOPE_ORG组织级隔离，组织内用户能看到该组织所有数据，结果集中必须有ORG_CODE字段；
	 * DATA_SCOPE_DEPT部门级别隔离，能看到所在部门和指定部门及指定部门下级部门的数据，结果集中必须有DEPT_CODE字段；
	 * DATA_SCOPE_OWNER只能看到自己创建的，结果集中必须有CREATE_PERSON_CODE字段；
	 * DATA_SCOPE_DEPT_BY_CREATE_PERSON_CODE能看到数据权限配置下所有能看到的数据，返回结果集中不必有DEPT_CODE或ORG_CODE字段，
	 * 但必须有CREATE_PERSON_CODE字段，字段可采用别名转换，例如：select USER_CODE , USER_CODE AS CREATE_PERSON_CODE from user_message;
	 */
	public final static int DATA_SCOPE_ORG = 1;
	public final static int DATA_SCOPE_DEPT = 2;
	public final static int DATA_SCOPE_OWNER = 3;
	public final static int DATA_SCOPE_DEPT_BY_CREATE_PERSON_CODE = 4;

	/**
	 *顶级部门默认后缀
	 */
	public final static String DEPT_SUFFIX = "-默认顶级部门";
	/**
	 *顶级部门默认后缀
	 */
	public final static String POS_SUFFIX = "-默认岗位分组";

	public final  static  String LAB_DEPT_CODE="1508633151788888065";
}


